<template>
  <div>
    <div>
        <h4>孕产史</h4>
        <el-row type="flex" justify="space-between">
          <el-col :span="5">
            <span>孕 </span>
            <el-input v-model="pgForm.pregnancy_and_childbirth_history_input1" placeholder="" style="width: 50%;"></el-input>
            <span> 次</span>
          </el-col>
          <el-col :span="5">
            <span>产 </span>
            <el-input v-model="pgForm.pregnancy_and_childbirth_history_input2" placeholder="" style="width: 50%;"></el-input>
            <span> 次</span>
          </el-col>
          <el-col :span="5">
            <span>流产 </span>
            <el-input v-model="pgForm.pregnancy_and_childbirth_history_input3" placeholder="" style="width: 50%;"></el-input>
            <span> 次</span>
          </el-col>
          <el-col :span="5">
            <span>引产 </span>
            <el-input v-model="pgForm.pregnancy_and_childbirth_history_input4" placeholder="" style="width: 50%;"></el-input>
            <span> 次</span>
          </el-col>
        </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "pregnancy_and_childbirth_history",
  title: "孕产史",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm:{
        pregnancy_and_childbirth_history_input1: '',
        pregnancy_and_childbirth_history_input2: '',
        pregnancy_and_childbirth_history_input3: '',
        pregnancy_and_childbirth_history_input4: '',
      },
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
</style>
